import baseUrl from '@/api/env.js'

export default {
    // 获取文件上传地址
    castoffList: baseUrl + '/school/castoff/page',
    // 订单列表
    schoolOrderList: baseUrl + '/purchase/pp/order/page',
    //接单详情
    getConfirmById: (id) => {
        return baseUrl + '/purchase/pp/order/get/confirm/' + id;
    },
    // 获取订单商品列表
    schoolOrderGoodsList: baseUrl + '/purchase/pp/orderGoods/page',
    // 退单
    orderCancel: baseUrl + '/purchase/pp/order/cancelOrderCustomer',
    // 保存改单
    changeSave: baseUrl + '/purchase/pp/orderChange/customerChange',
    // 修改订单基本信息
    changeOrderSave: baseUrl + '/purchase/pp/orderChange/customerOrderChange',
    // 查询订单退换货列表
    schoolRefundOrderList: baseUrl + '/purchase/pp/order/list/exchangeOrRefund',
    // 获取订单商品列表
    getOrderGoodsList: (orderId) => {
        return baseUrl + '/purchase/pp/orderGoods/list/change/' + orderId;
    },
    // 获取订单详情商品
    getOrderGoodsDetail: (orderId) => {
        return baseUrl + '/purchase/pp/orderGoods/page/change/' + orderId;
    },
    // 整单退
    refundOrder: baseUrl + '/purchase/pp/order/refund/all',
    // 入库
    orderInstock: baseUrl + '/purchase/pp/order/stock',
    // 下单
    orderEnteringSave: baseUrl + '/purchase/pp/order/orderEnteringSave',
    // 订单改变确认
    orderChangeConfirm: baseUrl + '/purchase/pp/order/changeConfirmCustomer',
    // 今日订单数量
    getNowDateOrderCount: baseUrl + '/purchase/pp/order/getNowDateOrderCount',
    // 供应商订单统计
    getProviderOrderRankingList: baseUrl + '/purchase/pp/order/getProviderOrderRankingList',
    //修改订单
    updateOrder: baseUrl + '/purchase/pp/order/edit',
    // 已结算订单列表查询
    settlementOrderList: baseUrl + '/purchase/pp/order/selectOrderSettlementListNoTenantId',
    // 订单商品追溯
    getOrderGoodsTrace: (orderGoodsId) => {
        return baseUrl + '/purchase/pp/order/getPpOrderGoodsTraceByOrderGoodsId/' + orderGoodsId;
    },
    // 店铺接口
    getStoreData: baseUrl + '/purchase/store/getStoreData',
    // 订单详情
    getOrderInfo: (id) => {
        return baseUrl + '/purchase/pp/order/get/' + id;
    },
    // 再来一单
    repeatOrder: baseUrl + '/purchase/pp/order/getAgainOrderGoodsList',
}